/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.uc.service;

import java.util.Collection;
import java.util.List;

import com.xy.biz.uc.domain.bo.SignatureBO;
import com.xy.biz.uc.domain.query.SignatureQuery;
import com.xy.biz.uc.domain.req.SaveSignatureRequest;
import com.xy.biz.uc.domain.req.UploadSignatureRequest;
import com.xy.lang.domain.Result;
import org.springframework.web.multipart.MultipartHttpServletRequest;

/**
 *
 *
 * @author yzh
 * @date 2021-2-22
 */
public interface SignatureService {

	/**
	 * 保存
	 *
	 * @param signatureBO
	 */
	Result<?> saveSignature(SignatureBO signatureBO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	Result<?> saveAllSignature(Collection<SignatureBO> collection);

	/**
	 * 更新
	 *
	 * @param signatureBO
	 */
	Result<?> updateSignature(SignatureBO signatureBO);

	/**
	 * 更新
	 *
	 * @param request
	 */
	Result<?> uploadSignature(UploadSignatureRequest request);

	/**
	 * 删除
	 *
	 * @param signatureId
	 */
	Result<?> deleteSignature(Long signatureId);

	/**
	 * 查找一个
	 *
	 * @param signatureId
	 * @return
	 */
	SignatureBO getSignature(Long signatureId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<SignatureBO> listSignatureById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<SignatureBO> listSignatureByUserId(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<SignatureBO> listSignature(SignatureQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countSignature(SignatureQuery query);


	/**
	 * 获取签章
	 * @return
	 */
	SignatureBO getSignatureByUserId();
}
